<?php

/**
 * Patent
 * 专利
 *
 * @author ddj
 */
class Patent {
    private $name;          //
    private $responsible;   // 责任人
    private $submitDate;    // 提交日期
    private $authorizeDate; // 授权日期
    private $state;         // 状态
    private $auditingState; // 审核状态
    
    function __construct($attributesArray=null) {
        $this->name = null;
        $this->responsible = null;
        $this->submitDate = null;
        $this->authorizeDate = null;
        $this->state = null;
        $this->auditingState = null;
        
        if($attributesArray!=null){
            foreach ($attributesArray as $key => $value) {
                $this->$key = $value;
            }
        }
    }

    function __get($propertyName) {
        if(isset($this->$propertyName)){
            return $this->$propertyName;
        }else{
            //
            return NULL;
        }
    }
    
    function __set($propertyName, $value) {
        $this->$propertyName = trim($value);
    }

}
